package com.generator.security.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2023/12/13 16:05
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "renren.security")
public class SecurityProperties {
    /**
     * accessToken 过期时间(单位：秒)，默认1小时
     */
    private int accessTokenExpire = 60 * 60;
    /**
     * refreshToken 过期时间(单位：秒)，默认14天
     */
    private int refreshTokenExpire = 60 * 60 * 24 * 14;
}
